#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main() {
    int n, h, m;
    scanf("%d %d %d", &n, &h, &m);
    if (m % h != 0)
        printf("%d", n - (m / 5) - 1);
    else
        printf("%d", n - m / 5);
    return 0;
}
int main() {
    int n, h, m;
    scanf("%d %d %d", &n, &h, &m);
    if (m <= n * h)
    {
        if (m % h != 0)
            printf("%d", n - (m / h) - 1);
        else
            printf("%d", n - m / h);
    }
    return 0;
}
int main() {
    double f, c;
    scanf("%lf", &f);
    c = 5.0 / 9 * (f - 32);
    printf("%.3lf", c);
    return 0;
}
int main() {
    double a;
    scanf("%lf", &a);
    printf("%.2lf", a * a * 3.14);
    return 0;
}
int main() {
    float r1, r2;
    scanf("%f%f", &r1, &r2);
    float a = 1.0 / ((1.0 / r1) + (1.0 / r2));
    printf("%.1f", a);
    return 0;
}
int main() {
    float h, r;
    scanf("%f%f", &h, &r);
    float V = 3.14 * h * r * r;
    if (10000 % V != 0)
        printf("%.0f", 10000.0 / V + 1);
    else
        printf("%.0f", 10000.0 / V);
    return 0;
}
#include<stdio.h>
int main()
{
    int n;
    int s = 0;
    int m = 0;
    scanf("%d", &n);
    for (m=1; m<= n; m++)
    {
        m = m * (m + 1);
        s = s + m;
    }
    printf("%d", s+1);
    return 0;
}

#include<stdio.h>
int main()
{
    int n;
    int s = 0;
    int m = 1;
    scanf("%d", &n);
    if (n == 1)
        printf("1");
    else
    {
        for (; n > 1; n--)
        {
            m = n * (n - 1);
            s = s + m;
        }
        printf("%d", s + 1);
    }
    return 0;
}
#include<stdio.h>
int main()
{
    int n, min;
    scanf("%d", &n);
    int arr[4];
    for (int i = 0; i < n; i++)
    {
        scanf("%d", &arr[i]);
    }
    min = arr[0];
    for (int i = 0; i < n; i++)
    {
        if (arr[i] < min)
        {
            int a = arr[i];
            arr[i] = min;
            min = a;
        }
    }
    printf("min = %d", min);
    return 0;
}
int main()
{
    int N, j;
    j = 1;
    int S = 0;
    scanf("%d", &N);
    for (int i = 1; i <= N; i++)
    {
        j = 1*j*i;
        S = S + j;
    }
    printf("%d", S);
    return 0;
}
int prime(int i)
{
    if (i < 2)
        return 0;
    for (int j = 2; j * j <= i; j++)
    {
        if (i % j == 0)
        {
            return 0;
        }
    }
    return 1;
}
int main()
{
    int i = 0;
    int flag = 0;
    for (i = 2; i <= 100; i++)
    {
        int a = prime(i);
        if (a)
        {
            printf("%6d", i);
            flag++;
            if (flag % 10 == 0)
                printf("\n");
        }
    }
    return 0;
}
int main()
{
    long n = 0;
    int m = 0;
    scanf("%ld", &n);
    while (n)
    {
        m = n % 10;
        printf("%d ", m);
        n = n / 10;
    }
    return 0;
}
#include<stdio.h>
int main()
{
    int M, N;
    int a;
    scanf("%d%d", &M, &N);
    for (int i = 1; i < M && i < N; i++)
    {
        if (M % i == 0 && N % i == 0)
        {
            a = i;
        }
    }
    printf("%d", a);
    return 0;
}
int main()
{
    int M, N;
    int a, b;
    scanf("%d%d", &M, &N);
    for (int i = 1; i < M && i < N; i++)
    {
        if (M % i == 0 && N % i == 0)
        {
            a = i;
        }
    }
    if (M > N)
    {
        int c = M;
        M = N;
        N = c;
    }
    int j = M;
    int flag = 0;
    for (int i = 1;i<=M*N; i++)
    {
        for (int j = 1;j<=M*N; j++)
        {
            if (M * i == N * j)
            {
                b = M * i;
                flag = 1;
                break;
            }
        }
        if (flag == 1)
        {
            break;
        }
    }
    printf("%d %d", a, b);
    return 0;
}
#include<stdio.h>
void my_printf(int c)
{
    printf("%d = ", c);
    for (int i = 1; i <= c / 2; i++)
    {
        if (c % i == 0&&i<c/2)
            printf("%d + ", i);
        if (c % i == 0 && i == c / 2)
            printf("%d", i);
    }
    printf("\n");
}
int main()
{
    int m, n;
    scanf("%d%d", &m, &n);
    int i = m;
    for (; i <= n; i++)
    {
        int j = 1;
        int c = 0;
        for (; j < i; j++)
        {
            if (i % j == 0)
            {
                c += j;
            }
        }
        if (c == i)
            my_printf(c);
    }
    return 0;
}
#include<stdio.h>
void my_printf(int c)
{
    printf("%d = ", c);
    for (int i = 1; i <= c / 2; i++)
    {
        if (c % i == 0 && i < c / 2)
            printf("%d + ", i);
        if (c % i == 0 && i == c / 2)
            printf("%d", i);
    }
    printf("\n");
}
int main()
{
    int m, n;
    scanf("%d%d", &m, &n);
    int i = m;
    for (; i <= n; i++)
    {
        int j = 1;
        int c = 0;
        for (; j <= i; j++)
        {
            if (i % j == 0)
            {
                c += j;
            }
        }
        if (c == i)
            my_printf(c);
    }
    return 0;
}